package icu.study.service.impl;

import icu.study.entity.Menu;
import icu.study.dao.MenuDao;
import icu.study.common.security.entity.MenuSecurity;
import icu.study.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 1246263205@qq.com
 * @since 2020-10-08
 */
@Service
@MapperScan("icu.study.dao")
public class MenuServiceImpl extends ServiceImpl<MenuDao, Menu> implements MenuService {

    @Override
    public List<MenuSecurity> getMenus() {
        return baseMapper.selectMenus();
    }
}
